#include "taskprivate.h"
#include <core/task.h>

namespace Opl { namespace Core {

TaskPrivate::TaskPrivate(Task* t):
				target(t)
				,shouldStop(false)
{
}

void TaskPrivate::run()
{
	Q_ASSERT(target);
	target->run();
}

void TaskPrivate::sleep(unsigned long seconds)
{
	QThread::sleep(seconds);
}

void TaskPrivate::msleep(unsigned long milliseconds)
{
	QThread::msleep(milliseconds);
}

};};
